/*
 * @Descripttion: 
 * @version: 
 * @Author: zero
 * @Date: 2020-04-27 23:21:41
 * @LastEditors: zero
 * @LastEditTime: 2020-04-28 17:53:17
 */
export default {
  namespace: 'headSearch',
  state: {
    searchValue: '123'
  },
  effects: {
   * changeelse ({ payload }, { call, put }) {
     yield put({
        type: 'change',
        payload: {
          searchValue: payload.searchValue
        },
      });
    },
  },
  reducers: {
    change (state, { payload: { searchValue} }) {
      console.log(searchValue)
      return { ...state, searchValue}
    },
  }
};